package exception
{
	import exception.code.ErrorCode;

	public class ExceptionUtil
	{
		public function ExceptionUtil()
		{
		}
		
		/**
		 * @param errorCode  错误码 
		 */
		public static function handleException(errorCode:int):void
		{
			var msg:String = ErrorCode.getErrorMsg(errorCode); 
			if ( msg != null ) {
				throw new Error("错误码:" + errorCode + " \n信息:" + msg);
			}
		}
	}
}